
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/bootstrap-treeview.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/bootstrap.addtabs.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/bootstrap-table.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/bootstrap-table-zh-CN.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/bootbox.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/fileinput.js"></script>
    <script type="text/javascript" src="../js/bootstrap/js/zh.js"></script>
    <link rel="stylesheet" href="../js/bootstrap/css/fileinput.css" />
    <link rel="stylesheet" href="../js/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../js/bootstrap/css/bootstrap-treeview.min.css" />
    <link rel="stylesheet" href="../js/bootstrap/css/bootstrap.addtabs.css" />
    <link rel="stylesheet" href="../js/bootstrap/css/bootstrap-table.min.css" />
    <link rel="stylesheet" href="../css/second.css" />

</head>

<body >
<div class="header">
    <ul>
        <li><div class="head-font"></div></li>
        <li><p>&nbsp; &nbsp; 签约记录</p></li>
    </ul>
</div>

<!-- 条查 -->

<form class="form-inline">
    <div class="search-one">
        <div class="form-group">
            <label >签约状态 &nbsp; &nbsp;</label>
            <select  name="xueli" class="form-control" data-live-search="true" style="width:200px">
                <option value="-1">请选择</option>
                <option value="高中">高中</option>
                <option value="大专">大专</option>
                <option value="本科">本科</option>
                <option value="研究生">研究生</option>
            </select>
        </div>
        <div class="form-group">
            <label >签约机构  &nbsp; &nbsp;</label>
            <select  name="xueli" class="form-control" data-live-search="true" style="width:200px">
                <option value="-1">请选择</option>
                <option value="高中">高中</option>
                <option value="大专">大专</option>
                <option value="本科">本科</option>
                <option value="研究生">研究生</option>
            </select>
        </div>
        <div class="form-group">
            <label >医生团队 &nbsp; &nbsp;</label>

            <select  name="xueli" class="form-control" data-live-search="true" style="width:200px">
                <option value="-1">请选择</option>
                <option value="高中">高中</option>
                <option value="大专">大专</option>
                <option value="本科">本科</option>
                <option value="研究生">研究生</option>
            </select>

        </div>
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="button"  onclick="userSearch()" class="btn btn-default" style="height: 40px; color: #0066ff; border: 1px solid #0066ff;">搜索</button>

    </div>
    <br>
    <div class="search-one">
        <div class="form-group">
            <label >服务包 &nbsp; &nbsp;  &nbsp;  &nbsp;</label>
            <select  name="xueli" class="form-control" data-live-search="true" style="width:200px">
                <option value="-1">请选择</option>
                <option value="高中">高中</option>
                <option value="大专">大专</option>
                <option value="本科">本科</option>
                <option value="研究生">研究生</option>
            </select>
        </div>
        <div class="form-group">
            <label >选择日期  &nbsp; &nbsp;</label>
            <input type="text" style="width:200px" class="form-control" placeholder="请选择日期 &nbsp;">
        </div>
        <div class="form-group">
            <label >医生团队 &nbsp; &nbsp;</label>

            <select  name="xueli" class="form-control" data-live-search="true" style="width:200px">
                <option value="-1">请选择</option>
                <option value="高中">高中</option>
                <option value="大专">大专</option>
                <option value="本科">本科</option>
                <option value="研究生">研究生</option>
            </select>

        </div>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="button"  onclick="userSearch()" class="btn btn-default" style="height: 40px; color: #0066ff; border: 1px solid #0066ff;">搜索</button>

    </div>
</form>
<br>
<table class="table table-striped">
    <thead>
    <tr>
        <th><input type="checkbox"></th>
        <th>编号</th>
        <th>签约人姓名</th>
        <th>身份证号</th>
        <th>手机号码</th>
        <th>签约状态</th>
        <th>签约医生团队</th>
        <th>签约服务包</th>
        <th> &nbsp;最后修改时间</th>
        <th> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 操作</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="red">已驳回</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="#FDDB78">待审核</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="#3DD4A7">已通过</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="red">已驳回</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="#FDDB78">待审核</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="#3DD4A7">已通过</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="red">已驳回</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="#FDDB78">待审核</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="#3DD4A7">已通过</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    <tr>
        <th><input type="checkbox"></th>
        <td>202045231</td>
        <td>马浩</td>
        <td>56000145554</td>
        <td>1505213552</td>
        <td><font color="red">已驳回</font></td>
        <td>马小杰团队</td>
        <td>RNG服务包</td>
        <td>2000/12/05 11:50</td>
        <td>
            <a href="">查看详情 &nbsp; &nbsp; &nbsp;</a>
            <a href=""> 编辑</a>
        </td>
    </tr>
    </tbody>
</table>
</div>
</body>
<script type="text/javascript">
    $(function(){
        inittable();//初始化表格数据
        UlTree();
    })
    //初始化树
    function UlTree(){
        $("#litree").treeview({
            data:getTwoTree(),//数据
            backColor:"sliver",
            onNodeSelected:function(event, node) {
                $.addtabs({iframeHeight: 550});
                //选项卡
                $.addtabs.add({
                    id:node.id,
                    title:node.text,
                    url:node.href
                });
            }
        });

    }
    //定义树里的数据来源
    function getTwoTree(){
        var data = [
            {
                "id":1,
                "text":"南昌交警大队",
                "pid":0,
                "href":null,
                "nodes":[
                    {
                        "id":2,
                        "text":"交警大队",
                        "pid":1,
                        "href":"../show.html",
                        "nodes":null,
                        "selectable":true
                    },{
                        "id":2,
                        "text":"秩序中队",
                        "pid":1,
                        "href":"../url/RNGshow",
                        "nodes":null,
                        "selectable":true
                    },{
                        "id":2,
                        "text":"事故处理中队",
                        "pid":1,
                        "href":"../url/RNGshow",
                        "nodes":null,
                        "selectable":true
                    },
                    {
                        "id":2,
                        "text":"车管科",
                        "pid":1,
                        "href":"../url/RNGshow",
                        "nodes":null,
                        "selectable":true
                    },
                    {
                        "id":2,
                        "text":"办公室",
                        "pid":1,
                        "href":"../url/RNGshow",
                        "nodes":null,
                        "selectable":true
                    },
                    {
                        "id":2,
                        "text":"莲花中队",
                        "pid":1,
                        "href":"../url/RNGshow",
                        "nodes":null,
                        "selectable":true
                    },
                    {
                        "id":2,
                        "text":"小蓝工业中队",
                        "pid":1,
                        "href":"../url/RNGshow",
                        "nodes":null,
                        "selectable":true
                    },

                ],

                "selectable":false
            },
        ];
        return data;
    }

    //条查
    function userSearch(){
        $('#myTable').bootstrapTable("refresh");
    }

    //查询
    function inittable(){
        $("#myTable").bootstrapTable({
            // url:"../user/findpage",
            columns:[
                {field:'stuId',title:'id'},
                {field:'545',title:'学生姓名'},
                {field:'sex',title:'性别',formatter:function(value,row){
                        if(value==1){
                            return "男";
                        }else{
                            return "女";
                        }
                    }},
                {field:'birthday',title:'出生日期'},
                {field:'age',title:'年龄'},
                {field:'createdatetime',title:'入学日期'},
                {field:'address',title:'家庭住址'},
                {field:'xssfzh',title:'学生身份证'},
                {field:'zsls',title:'招生老师'},
                {field:'xssfzh',title:'咨询老师'},
                {field:'parentName',title:'家长姓名'},
                {field:'jzsfzh',title:'家长身份证号'},
                {field:'parentPhone',title:'家长联系方式'},
                {field:'stuPhone',title:'学生电话'},
                {field:'email',title:'邮箱'},
                {field:'specialty',title:'专业方向'},
                {field:'totalXueFei',title:'总学费'},
                {field:'totalZhuSu',title:'住宿费'},
                {field:'totalZaFei',title:'杂费'},
                {field:'sushehao',title:'宿舍号'},
                {field:'totalZaFei',title:'校区'},
                {field:'ruZhuDate',title:'入住时间'},
                {field:'xueli',title:'学历'},
                {field:'stuStatus',title:'费用状态',formatter:function(value,row){
                        if(value==1){
                            return "已结清";
                        }else{
                            return "未结清";
                        }
                    }},
            ],
            pagination: true,
            sidePagination: "client",
            pageNumber: 1,
            pageSize:2,
            pageList: [2, 4,6,8,10],
            toolbar:"#toolbar",
            queryParams:function(){
                return {
                    page: this.pageNumber,
                    rows: this.pageSize,
                    stuName:$("#stuName").val(),
                    stuPhone:$("#stuPhone").val(),
                    startView:$("#startView").val(),
                    endView:$("#endView").val()
                };
            },
        })

    }
    //新增
    function sub(){
        var formData = $("#myForm").serialize();
        console.log(formData);
        $.ajax({
            url:"../boot/addResource",
            type:"post",
            data:formData,
            success:function(){
                $("#myModal").modal('hide');
            }
        })
    }

</script>
</html>
